package com.whli.autumn.mall.metadata.domain.dto.perunit;

import com.whli.autumn.core.extend.domain.dto.BaseUpdateDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <p>计量单位修改参数</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-05-22 13:57
 */
@ApiModel(description = "计量单位修改参数")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PerUnitUpdateDTO extends BaseUpdateDTO {

    @ApiModelProperty(value = "单位标识")
    @NotBlank(message = "单位标识不能为空")
    private String code;

    @ApiModelProperty(value = "单位名称")
    @NotBlank(message = "单位名称不能为空")
    private String name;

}
